package xy.donate.android.db;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;

import java.util.List;

import xy.donate.android.entity.HandsUpEntity;

@Dao
public interface HandsUpDao {

    @Query("select * from HandsUpEntity where UserID=:ID")
    List<HandsUpEntity> getList(String ID);

    @Query("select * from HandsUpEntity where RecordID=:ID")
    HandsUpEntity getDetail(String ID);

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insert(HandsUpEntity entity);
}
